package com.rlz.framemm.util;


import com.rlz.base.util.ToastUtils;

/**
 * Created by RLZ
 * on 2021/11/15
 */
public class JniUtil {

    static {
        System.loadLibrary("libliblib");
    }

    public static String getMsg() {

        return getJinMsg();
    }

    public static int equal(String s1, String s2) {
        return equalJni(s1, s2);
    }

    public static String getConcatStr() {
        return concatString("第一个串", "第二个串");
    }

    public static int arrSum(int[] arr) {
        return arraySum(arr);
    }

    public static int getMessage() {
        return 10000;
    }


    public static native String getJinMsg();

    public static native String concatString(String s1, String s2);

    public static native int equalJni(String s1, String s2);

    public static native int arraySum(int[] arr);

}
